package com.sskj.cndragon.bean;

import java.util.ArrayList;
import java.util.List;

public class OrderPositionListBean {

    private List<OrderPositionBean> list;

    public List<OrderPositionBean> getList() {
        if (list == null) {
            return new ArrayList<>();
        }
        return list;
    }

    public void setList(List<OrderPositionBean> list) {
        this.list = list;
    }

    public class OrderPositionBean {


        /**
         * id : 1
         * stockUserId : 176
         * stockId : 39
         * orderNo : 123456
         * buyPrice : 1.0
         * sellPrice : 2.0
         * profitPrice : 1.0
         * status : 1
         * renewalStatus : 0
         * createTime : 1555925436000
         * name : 救市龙
         * contractDays : 5
         * profitRatio : 10.00000000
         */

        private String id;
        private String stockUserId;
        private String stockId;
        private String orderNo;
        private double buyPrice;
        private double sellPrice;
        private double profitPrice;
        private int status;
        private int renewalStatus;
        private long createTime;
        private String name;
        private String contractDays;
        private String profitRatio;
        private String holdDays;

        public String getHoldDays() {
            return holdDays == null ? "" : holdDays;
        }

        public void setHoldDays(String holdDays) {
            this.holdDays = holdDays;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getStockUserId() {
            return stockUserId == null ? "" : stockUserId;
        }

        public void setStockUserId(String stockUserId) {
            this.stockUserId = stockUserId;
        }

        public String getStockId() {
            return stockId == null ? "" : stockId;
        }

        public void setStockId(String stockId) {
            this.stockId = stockId;
        }

        public String getOrderNo() {
            return orderNo == null ? "" : orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public double getBuyPrice() {
            return buyPrice;
        }

        public void setBuyPrice(double buyPrice) {
            this.buyPrice = buyPrice;
        }

        public double getSellPrice() {
            return sellPrice;
        }

        public void setSellPrice(double sellPrice) {
            this.sellPrice = sellPrice;
        }

        public double getProfitPrice() {
            return profitPrice;
        }

        public void setProfitPrice(double profitPrice) {
            this.profitPrice = profitPrice;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getRenewalStatus() {
            return renewalStatus;
        }

        public void setRenewalStatus(int renewalStatus) {
            this.renewalStatus = renewalStatus;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public String getName() {
            return name == null ? "" : name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContractDays() {
            return contractDays == null ? "" : contractDays;
        }

        public void setContractDays(String contractDays) {
            this.contractDays = contractDays;
        }

        public String getProfitRatio() {
            return profitRatio == null ? "" : profitRatio;
        }

        public void setProfitRatio(String profitRatio) {
            this.profitRatio = profitRatio;
        }
    }


}
